package org.ftc.service;

import java.util.List;

import org.ftc.dao.CodeResolutionDao;
import org.ftc.domain.CodeResolution;
import org.ftc.form.CodeResolutionForm;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CodeResolutionService {
	
	@Autowired
	CodeResolutionDao codeResolutionDao;
	@Autowired
	private UsersService usersService;
	
	public CodeResolution load(String id) {
		return codeResolutionDao.load(id);
	}

	public CodeResolution get(String id) {
		return codeResolutionDao.get(id);
	}
	
	public synchronized boolean save(CodeResolution entity) {
		return codeResolutionDao.save(entity);
	}


	public synchronized boolean saveOrUpdate(CodeResolution entity) {
		return codeResolutionDao.saveOrUpdate(entity);
	}

	public synchronized boolean update(CodeResolution entity) {
		return codeResolutionDao.update(entity);
	}

	public synchronized boolean delete(CodeResolution entity) {
		return codeResolutionDao.delete(entity);
	}

	public synchronized boolean delete(String id) {
		return codeResolutionDao.delete(id);
	}
	
	public List<CodeResolution> findPage(CodeResolutionForm form) {
		return codeResolutionDao.findPage(form);
	}

	public List<CodeResolution> findAll() {
		return codeResolutionDao.findAll();
	}

	public long countAll() {
		return codeResolutionDao.countAll();
	}
	
}
